#!/bin/bash

echo "-----frontend build start-----"

yarn install
yarn run build

echo "------frontedn build end-------"

echo "------copy frontend start------"
# 拷贝前端 spawn后加 bash -c用来识别文件通配符
ls

scp -r ./dist/**   root@124.223.203.93:/usr/share/nginx/yixin-back-new